package com.ti.ouxun;

import android.app.Application;
import android.util.Log;
import android.widget.Toast;

/**
 * 
 * @author kTian
 *
 * 2013-12-31下午2:47:42
 */
public class App extends Application {
	
	private static String TAG = "App";
	private static App INSTANCE;

	@Override
	public void onCreate() {
		super.onCreate();
		INSTANCE = this;
	}
	
	public static App getInstance() {
		return INSTANCE;
	}
	
	public static void showToast( Object msg ) {
		Toast.makeText(getInstance(), msg + "", Toast.LENGTH_SHORT).show();
	}
	
	public static void showLog( String tag, Object msg ) {
		Log.d(TAG + "_" + tag, msg + "");
	}
}
